#! /bin/bash

#cp -r /home/vhosts/wiscad.ece.wisc.edu/papers/12-DATE-TRACE .
#latex main.tex | tee warn.txt
bibtex main
#latex main.tex | tee warn.txt
#latex main.tex | tee warn.txt
#dvipdf main.dvi 

pdflatex main.tex

if [ $1 -eq 0 ] 
then
    #pdfclose --file main.pdf
    pdfopen --file main.pdf
else
    echo "Just compile"
fi
